<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>龙蛙商城</title>
    <meta name="keywords" content="龙蛙商城">
    <meta name="description" content="龙蛙商城">
    <link rel="shortcut icon" href="/favicon.ico">
    <link href="/web/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/web/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/web/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="/web/css/animate.min.css" rel="stylesheet">
    <link href="/web/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/web/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-md-12">
            <div class="ibox">
                <div class="ibox-content">
                    <form id="ajaxform" class="form-horizontal" role="form">
                        <input type="hidden" name="activityId" th:value="${activity.activityId}">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告名称：</label>
                            <div class="col-sm-4">
                                <input type="text" name="activityTitle" th:value="${activity.activityTitle}" class="form-control" required=""
                                       aria-required="true" maxlength="20" minlength="1">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告类型：</label>
                            <div class="col-sm-4">
                                <select class="form-control" id="activityType" name="activityType">
                                    <option value="0">首页-轮播广告(768x420)</option>
<!--                                    <option value="1">首页-通栏广告(768x164)</option>-->
<!--                                    <option value="2">首页-热门单品-左图(375x400)</option>-->
<!--                                    <option value="3">首页-热门单品-右图(375x200)</option>-->
<!--                                    <option value="4">首页-PC轮播广告(1420x400)</option>-->
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告链接：</label>

                            <div class="col-sm-4">
                                <input type="text" name="activityUrl" th:value="${activity.activityUrl}" class="form-control">
                            </div>
                        </div>
<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-2 control-label">排序：</label>-->
<!--                            <div class="col-sm-4">-->
<!--                                <input type="number" name="activitySort" th:value="${activity.activitySort}" class="form-control" required=""-->
<!--                                       aria-required="true" minlength="1" maxlength="100000">-->
<!--                            </div>-->
<!--                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-2 control-label">图片路径：
                                <br/>
                                <small class="text-navy">尺寸, 轮播图：768x420，通栏图片：768x164</small>
                            </label>
                            <div class="col-sm-4">
                                <input type="text" th:value="${activity.activityImageUrl}" name="activityImageUrl" id="activityImageUrl"
                                       class="form-control activityImageUrl">
                                <input type="hidden" th:value="${activity.activityContent}" name="activityContent"/>
                            </div>
                            <div class="col-sm-1">
                                <div class="id_img bod">
                                    <input type="hidden" name="imgIdBack"/>
                                    <div class="weui-uploader__input-box">
                                        <input class="weui-uploader__input" type="file" id="file_temporaryImage"
                                               accept="image/png, image/jpeg, image/jpg, image/gif">
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-5"></div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2"></div>
                            <div class="col-sm-7">
                                <div class="div_temporaryImage">
                                    <img th:src="${activity.activityImageUrl}"/>
                                </div>
                                <div class="col-sm-3"></div>
                            </div>
                        </div>
                    </form>
                        <div class="form-group">
                            <div class="ibox float-e-margins">
                                <script id="editor" type="text/plain"></script>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-5"></div>
                            <button id="submitCategoryCreate" class="btn btn-primary col-sm-2">保存</button>
                            <div class="col-sm-5"></div>
                        </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script th:inline="javascript">
    /*<![CDATA[*/
    activityTypeChecked = [[${activity.activityType}]];
    /*]]>*/
</script>
<script src="/web/js/jquery.min.js?v=2.1.4"></script>
<script src="/web/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/web/js/content.min.js?v=1.0.0"></script>
<script src="/web/js/jquery.form.js?v=3.51"></script>
<script src="/web/js/lrz.all.bundle.js"></script>
<script src="/web/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="/web/js/plugins/validate/jquery.validate.min.js"></script>
<script src="/web/js/plugins/validate/messages_zh.min.js"></script>
<script src="/web/js/plugins/toastr/toastr.min.js"></script>
<script src="/web/js/plugins/peity/jquery.peity.min.js"></script>
<script src="/web/js/self/activity_update.js?v=1.0"></script>

</body>
</html>
